//
//  DGHelper.h
//  DGAlert
//
//  Created by Douglas on 2018/11/1.
//  Copyright © 2018年 Douglas. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AFNetworking.h>
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger,PushState) {
    PushStateIdle,
    PushStatePushing,
    PushStateSuccess,
    PushStateError
};
NS_ASSUME_NONNULL_BEGIN

@interface DGHelper : NSObject
@property (nonatomic, assign) BOOL pushEnable;
@property (nonatomic, assign) BOOL bottomShow;
@property (nonatomic, copy) NSString *jappkey;
@property (nonatomic, assign) PushState state;
@property (nonatomic, assign) NSInteger pushtype;
@property (nonatomic, copy) NSString *filterStr;
@property (nonatomic, copy) void (^block)(BOOL isOK);
+ (instancetype)shareInstance;

- (void)enableAlertWithFinishedBlock:(void (^)(BOOL isOK))block;

+ (UIImage *)loadImage:(NSString *)imagename;

@end

NS_ASSUME_NONNULL_END
